package com.itheima.springbootday02;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class Springbootday02Application {

	public static void main(String[] args) {
		//启动SpringBoot的应用，返回Spring的IOC容器
		ConfigurableApplicationContext context = SpringApplication.run(Springbootday02Application.class, args);
		Object user = context.getBean("user");
		System.out.println(user);
	}

}
